<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link href="../uploadify/uploadify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../jquery-1.6.2.js"></script>
<script type="text/javascript" src="../uploadify/swfobject.js"></script>
<script type="text/javascript" src="../uploadify/jquery.uploadify.v2.1.4.min.js"></script>

<script type="text/javascript">
$(document).ready(function() {
  $('#fichero').uploadify({
    'uploader'  : '../uploadify/uploadify.swf',
    'script'    : '../uploadify/uploadify.php',
    'cancelImg' : '../uploadify/cancel.png',
    'folder'    : '/files',
    'auto'      : false,
	'multi'		: true,
	'queueSizeLimit' : 5,
	'buttonText': 'Subir Archivos',
	'removeCompleted': false,
	'simUploadLimit' : 1,
	'onSelect'    : function(event,ID,fileObj) {
		parent.$('imagen').value+=fileObj.name+",";
	},
	'onCancel'    : function(event,ID,fileObj,data) {
	   parent.$('imagen').value=parent.$('imagen').value.replace(fileObj.name+",",""); 
	   return true;
    }
	
      
    
  });
});
</script>


</head>

<body>
<input name="fichero" id="fichero" type="file"/>
<input type="button" value="Enviar Archivos" onclick="$('#fichero').uploadifyUpload()" />
</body>
</html>